package com.aiks.single.singlemavenproject.service;

import com.aiks.single.singlemavenproject.dao.UserBaseMapper;
import com.aiks.single.singlemavenproject.entity.CustomUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 用户服务.
 *
 * @author <a href="mailto:yuanz@yxt.com">yuanz</a>
 * @date 2022-01-27 13:05
 * @since 1.0.0
 **/
@Service
public class UserService {
    
    @Resource
    private UserBaseMapper userBaseMapper;
    
    /**
     * 查询用户.
     *
     * @param id 主键
     * @return CustomUser
     */
    public CustomUser getCustomUser(Long id) {
        return userBaseMapper.getById(id);
    }
}
